package com.ppl.server.db;


import com.github.jmkgreen.morphia.Morphia;
import com.google.common.collect.Sets;
import com.google.inject.Provider;
import com.ppl.server.model.Pet;

import com.ppl.server.model.User;


import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: Vincent
 * Date: 11/5/12
 * Time: 12:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class MorphiaProvider implements Provider<Morphia> {


    @Override
    public Morphia get() {
        Set<Class> classToMap = Sets.newHashSet();

        classToMap.add(User.class);
        classToMap.add(Pet.class);
       return new Morphia(classToMap);
    }
}
